package com.chongqing.shiro.util;


/**
 * @Description: 分页工具类
 * -------------------
 * @Author: YangXingfu
 * @Date: 2019/01/21 12:46
 */

public class PageUtil {

    public static Integer getPageNo(Integer limit, Integer offset) {
        return offset == 0 ? 1 : offset / limit + 1;
    }

}